//package com.example.demo.elasticsearch;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/user")
//public class UserController {
//
//    @Autowired
//    private UserService userService;
//
//
//    @PostMapping("/save")
//    public String save(@RequestBody User user) {
//        long id = System.currentTimeMillis();
//        user.setId(id);
//        userService.save(user);
//        return "新增成功,id为：" + id;
//    }
//
//
//}
